package Model

type Domain struct {
	Id         int    `json:"id" gorm:"primaryKey;type: int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID'"`
	AccountId  int    `json:"account_id" gorm:"type:int(11) NOT NULL comment '账号id';"`
	DomainId   string `json:"domain_id" gorm:"type:varchar(255) NOT NULL comment '域名id'"`
	RecordId   string `json:"record_id" gorm:"type:varchar(255) NOT NULL comment '记录id'"`
	RR         string `json:"RR" gorm:"column:RR;type:varchar(255) NOT NULL comment '子域名';uniqueIndex:t1"`
	DomainName string `json:"domain_name" gorm:"type:varchar(255) NOT NULL comment '域名';uniqueIndex:t1"`
	Value      string `json:"value" gorm:"type:varchar(255) NOT NULL comment '域名记录值'"`
	SslKey     string `json:"ssl_key" gorm:"type:mediumtext NOT NULL comment 'ssl证书key'"`
	SslPem     string `json:"ssl_pem" gorm:"type:mediumtext NOT NULL comment 'ssl证书pem'"`
}

func (*Domain) TableName() string {
	return "domains"
}
